package cn.jboa.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;


import cn.jboa.base.BaseDaoImpl;
import cn.jboa.dao.IDepartmentDAO;
import cn.jboa.entity.Department;
import cn.jboa.service.IDepartmentService;

@Service
public class DepartmentServiceImpl extends BaseDaoImpl<Department> implements IDepartmentService{
   
	@Resource
    private IDepartmentDAO departmentDao;
	
	@Override
	public List<Department> findTopList() {
		return departmentDao.findTopList();
	}

	@Override
	public List<Department> findChildren(Integer parentId) {
		return departmentDao.findChildren(parentId);
	}

	@Override
	public void addDept(Department dept) {
		departmentDao.addDept(dept);
		// TODO Auto-generated method stub
		
	}

	
   
}
